cmake_minimum_required(VERSION 3.15)

message("============== Lib Setup ==============")

set(LOCAL_LIB_ROOT_DIR  ${CMAKE_SOURCE_DIR}/lib)
message("当前项目静态库目录: ${LOCAL_LIB_ROOT_DIR}")
if(CMAKE_BUILD_TYPE STREQUAL "Release")
    set(LOCAL_STATIC_LIB_DIR ${LOCAL_LIB_ROOT_DIR}/release/static ${LOCAL_LIB_ROOT_DIR}/common/static)
    set(LOCAL_SHARED_LIB_DIR ${LOCAL_LIB_ROOT_DIR}/release/shared ${LOCAL_LIB_ROOT_DIR}/common/shared)
    set(ElaWidgetTool_LIB ElaWidgetTools.lib)
else()
    set(LOCAL_STATIC_LIB_DIR ${LOCAL_LIB_ROOT_DIR}/debug/static ${LOCAL_LIB_ROOT_DIR}/common/static)
    set(LOCAL_SHARED_LIB_DIR ${LOCAL_LIB_ROOT_DIR}/debug/shared ${LOCAL_LIB_ROOT_DIR}/common/shared)
    set(ElaWidgetTool_LIB ElaWidgetToolsd.lib)
endif()